<?php
use common\service\StaticService;
use backend\assets\AdminAsset;
use common\service\GlobalUrlService;

StaticService::includeAppCssStatic(GlobalUrlService::buildStaticUrl('/css/shop/info.css'),AdminAsset::class);
StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/backend/shop/get-info.js'),AdminAsset::class);
?>
<div class="layui-form-item">
    <a class="a1 layui-btn">查看商家信息</a>
    <a class="a2 layui-btn layui-btn-primary">查看商品列表</a>
    <a class="a3 layui-btn layui-btn-primary">查看活动列表</a>
</div>
<form class="layui-form">
    <div class="layui-card">
        <div class="layui-card-header">商家信息</div>
        <div class="layui-card-body">
            <div class="layui-form-item">
                <h2>店铺基本信息</h2>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">店铺名称</label>
                <div class="layui-inline">
                    <input type="text" class="layui-input" readonly="readonly" value="<?= $row['shop_name']?>">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">登录账号</label>
                <div class="layui-inline">
                    <input type="text" class="layui-input" readonly="readonly" value="<?= $row['user_account']?>" >
                </div>
            </div>
            <div class="layui-form-item">
                <h2>店铺管理人基本信息</h2>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">店铺管理人姓名</label>
                <div class="layui-inline">
                    <input type="text" class="layui-input" readonly="readonly" value="<?= $row['administration']?>">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">店铺管理人邮箱</label>
                <div class="layui-inline">
                    <input type="text" class="layui-input" readonly="readonly" value="<?= $row['admin_email']?>">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">店铺管理人手机号</label>
                <div class="layui-inline">
                    <input type="text" class="layui-input" readonly="readonly" value="<?= $row['admin_phone']?>">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">店铺管理人身份证号</label>
                <div class="layui-inline">
                    <input type="text" class="layui-input" readonly="readonly" value="<?= $row['join_card_no']?>">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">商家客服电话</label>
                <div class="layui-inline">
                    <input type="text" class="layui-input" readonly="readonly" value="<?= $row['customer_phone']?>">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">管理人身份证正面照片</label>
                <div class="layui-inline">
                <label class="layui-form-label label-pic" for="pic-card1">点击放大</label>
                    <div class="p40">
                        <label for="pic-card1">
                            <img src="<?= GlobalUrlService::buildCdnUrl($row['join_card1_pic'])?>" alt="" class="default">
                        </label>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">管理人身份证反面照片</label>
                <div class="layui-inline">
                    <label class="layui-form-label label-pic" for="pic-card2">点击放大</label>
                    <div class="p40">
                        <label for="pic-card2">
                            <img src="<?= GlobalUrlService::buildCdnUrl($row['join_card2_pic'])?>" alt="" class="default">
                        </label>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">管理人手持身份证照片</label>
                <div class="layui-inline">
                    <label class="layui-form-label label-pic" for="pic-card3">点击放大</label>
                    <div class="p40">
                        <label for="pic-card3">
                            <img src="<?= GlobalUrlService::buildCdnUrl($row['join_card3_pic'])?>" alt="" class="default">
                        </label>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <a class="layui-btn layui-btn-primary back">返回</a>                    
                </div>
            </div>
        </div>
    </div>
</form>
